package org.dromara.tearoom.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.tearoom.domain.TerIotDeviceOperLog;

/**
 * IoT设备操作日志业务对象 ter_iot_device_oper_log
 *
 * @author ckj
 * @date 2025-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerIotDeviceOperLog.class, reverseConvertGenerate = false)
public class TerIotDeviceOperLogBo extends BaseEntity {

    /**
     * 设备 ID，主键，自增
     */
    @NotNull(message = "设备 ID，主键，自增不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备唯一标识符，全局唯一，用于识别设备
     */
    @NotBlank(message = "设备唯一标识符，全局唯一，用于识别设备不能为空", groups = { EditGroup.class })
    private String deviceKey;

    /**
     * 操作内容
     */
    private String operation;

    /**
     * 操作类型
     */
    private String type;


}
